Automattic\Jetpack\Identity_Crisis D

Total Complexity 150
Dependencies 11
Dependents 10
Total lines 1,306
Lines of code 647
Logical lines of code 286
Comment lines 517
Methods 48
Properties 4

Methods 48

Method Rating Maintainability Complexity Lines of code
validate_sync_error_idc_option()
A
51 15 25
get_mismatched_urls()
A
53 9 25
maybe_clear_migrate_option()
A
58 9 14
add_idc_query_args_to_url()
A
50 8 28
locate_wp_config()
A
57 8 17
set_ip_requester_for_idc()
S
51 7 28
get_sync_error_idc_option()
S
50 7 28
check_response_for_idc()
S
55 5 21
detect_possible_dynamic_site_url()
S
55 5 21
add_ip_requester_to_url_validation_response()
S
58 5 16
wordpress_init()
S
58 5 15
display_admin_bar_button()
S
50 4 28
normalize_url_protocol_agnostic()
S
59 4 14
check_http_response_for_idc_detected()
S
60 4 13
reverse_wpcom_urls_for_idc()
S
63 4 11
check_identity_crisis()
S
67 4 7
add_secret_to_url_validation_response()
S
61 3 12
render_notice_second_step()
S
52 1 38
render_notice_first_step()
S
52 1 37
__construct()
S
54 2 20
maybe_update_ip_requester()
S
69 3 6
should_handle_idc()
S
66 3 8
url_is_ip()
S
67 3 7
clear_all_idc_options()
S
61 2 14
render_error_notice()
S
58 1 23
register_request_body()
S
67 2 8
has_identity_crisis()
S
78 2 3
update_ip_requester()
S
68 2 7
init()
S
71 2 6
do_jetpack_idc_disconnect()
S
65 2 10
get_start_fresh_action_explanation()
S
59 1 14
get_migrate_site_action_explanation()
S
59 1 14
get_first_step_header_lead()
S
61 1 13
get_first_step_fix_connection_action_explanation()
S
61 1 12
get_confirm_safe_mode_action_explanation()
S
61 1 12
get_first_step_header_explanation()
S
63 1 11
get_unsure_prompt()
S
63 1 11
get_safe_mod_doc_url()
S
75 1 4
send_package_version_to_tracker()
S
76 1 4
jetpack_connection_disconnect_site_wpcom_filter()
S
79 1 3
site_registered()
S
79 1 3
get_second_step_header_lead()
S
65 1 9
prepare_url_for_display()
S
75 1 4
safe_mode_is_confirmed()
S
80 1 3
get_first_step_fix_connection_button_text()
S
72 1 5
get_start_fresh_button_text()
S
72 1 5
get_migrate_site_button_text()
S
72 1 5
get_confirm_safe_mode_button_text()
S
72 1 5